<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        li {
            list-style: none;
            float: left;
            width: 100px;
            height: 50px;
            background-color:aqua;
            text-align: center;
             /* border: 1px solid #000; */
            line-height: 50px;
        }
        li:hover {
            background-color: rgb(255, 0, 81);
        }
        a{
            color:black;
            text-decoration: none;
        }
    </style>
</head>
<body>
    <nav>
        <ul>
            <li><a href="#">首页</a></li>
            <li><a href="#">质讯中心</a></li>
            <li><a href="#">办事大厅</a></li>
            <li><a href="#">政务公开</a></li>
            <li><a href="#">互动交流</a></li>
            <li><a href="#">机关党建</a></li>
        </ul>
    </nav>
</body>
</html>